<template>
	<view class="">
		<mapLocationPickerPolygons @selected="selected" :qqmapsdkKey="mapConfig.mapKey" :polygons="mapConfig.polygons" :secret="mapConfig.secret">
		</mapLocationPickerPolygons>

	</view>
</template>

<script>
	import mapLocationPickerPolygons from '@/components/liuchenghuaMap/liuchenghuaMap.vue';

	export default {
		name: 'map',
		components: {
			mapLocationPickerPolygons
		},
		data: function() {
			return {
				mapConfig: {
					mapKey: 'XRPBZ-65KCB-2JMUO-NCB4J-ZRIQE-HLFER',
					secret:'uIXqO9MJXu1z4hCDysiPEdz6ZLZdqxUl',
					polygons: []
				}
			};
		},
		methods: {
			selected(e) {
				uni.$emit('selectedMap', e);
				uni.navigateBack({
					delta: 1
				});
			}
		},
	}
</script>

<style>
</style>